package com.thkj.service.impl;

import dp.dao.PagingList;
import com.thkj.framework.base.BaseService;
import com.thkj.service.TblSpecialFoodService;
import com.thkj.entity.TblSpecialFood;

import java.util.Map;

import org.springframework.stereotype.Service;

@Service
public class TblSpecialFoodServiceImpl extends BaseService implements TblSpecialFoodService {
    public void insertTblSpecialFood(TblSpecialFood t){
        dao.insert("com.thkj.mapper.TblSpecialFood.insert", t);
    }

    public int updateTblSpecialFood(TblSpecialFood t){
        int row = dao.update("com.thkj.mapper.TblSpecialFood.update", t);
        return row;
    }

    public int deleteTblSpecialFood(String t ){
        return dao.delete("com.thkj.mapper.TblSpecialFood.delete", t);
    }

    public TblSpecialFood getTblSpecialFoodById(String t){
        return dao.queryForObject("com.thkj.mapper.TblSpecialFood.getById", t, TblSpecialFood.class);
    }

	public PagingList<Map> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblSpecialFood.query",param, pageIndex, pageSize, Map.class);
	}

}